package com.asiainfo.demo.dao;


import com.asiainfo.demo.dao.idao.iBind;
import com.asiainfo.demo.dao.idao.iCard;
import com.asiainfo.demo.dao.idao.iMember;
import com.asiainfo.demo.dao.proxy.BindProxy;
import com.asiainfo.demo.dao.proxy.CardProxy;
import com.asiainfo.demo.dao.proxy.MemberProxy;

public class DaoFactory {
    public static iBind getBindInstance(){
        iBind dao = null;

        try {
            dao = new BindProxy();
        } catch (Exception e){
            e.printStackTrace();
        }

        return dao;
    }

    public static iCard getCardInstance(){
        iCard dao = null;

        try {
            dao = new CardProxy();
        }catch (Exception e){
            e.printStackTrace();
        }

        return dao;
    }

    public static iMember getMemInstance(){
        iMember dao = null;

        try {
            dao = new MemberProxy();
        }catch (Exception e){
            e.printStackTrace();
        }
        return dao;
    }

}
